<?php

namespace Store\Model;

//use Zend\InputFilter\Factory as InputFactory;
//use Zend\InputFilter\InputFilter;
//use Zend\InputFilter\InputFilterAwareInterface;
//use Zend\InputFilter\InputFilterInterface;

class Store_orders //implements InputFilterAwareInterface
{
	public $id;
	public $store_product_id;
	public $qty;
	public $total;
	public $status;
	public $stamp;
	public $first_name;
	public $last_name;
	public $email;
	public $ship_to_street;
	public $ship_to_city;
	public $ship_to_state;
	public $ship_to_zip;
	
	
	function exchangeArray($data)
	{
		$this->id = (isset($data['id'])) ? $data['id'] : null;
		$this->store_product_id = (isset($data['store_product_id'])) ?	$data['store_product_id'] : null;
		$this->qty = (isset($data['qty'])) ? $data['qty'] : null;
		$this->total = (isset($data['total'])) ? $data['total'] : null;
		$this->status = (isset($data['status'])) ? $data['status'] : null;
		$this->stamp = (isset($data['stamp'])) ? $data['stamp'] : null;
		$this->first_name = (isset($data['first_name'])) ? $data['first_name'] : null;
		$this->last_name = (isset($data['last_name'])) ? $data['last_name'] : null;
		$this->email = (isset($data['email'])) ? $data['email'] : null;
		$this->ship_to_street = (isset($data['ship_to_street'])) ? $data['ship_to_street'] : null;
		$this->ship_to_city = (isset($data['ship_to_city'])) ? $data['ship_to_city'] : null;
		$this->ship_to_state = (isset($data['ship_to_state'])) ? $data['ship_to_state'] : null;
		$this->ship_to_zip = (isset($data['ship_to_zip'])) ? $data['ship_to_zip'] : null;
	}

	/*public function setInputFilter(InputFilterInterface $inputFilter)
	{
		throw new \Exception("Not used");
	}
	
	public function getInputFilter()
	{
		if (!$this->inputFilter) {
			$inputFilter = new InputFilter();
			$factory     = new InputFactory();
	
			$inputFilter->add(
					$factory->createInput(array(
							'name'     => 'profilename',
							'required' => true,
							'filters'  => array(
									array('name' => 'StripTags'),
									array('name' => 'StringTrim'),
							),
							'validators' => array(
									array(
											'name'    => 'StringLength',
											'options' => array(
													'encoding' => 'UTF-8',
													'min'      => 1,
													'max'      => 100,
											),
									),
							),
					))
			);
			 
			$inputFilter->add(
					$factory->createInput(array(
							'name'     => 'fileupload',
							'required' => true,
					))
			);
			 
			$this->inputFilter = $inputFilter;
		}
		 
		return $this->inputFilter;
	}*/
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}

?>
